import getpass

import requests

password = getpass.getpass()
resp = requests.post(
    url='https://github.com/session',
    headers={
        'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36'
    },
    data={
        'login': 'jackfrued@gmail.com',
        'password': password,
        'authentication_token': 'sOK+FjrPG2ncIeZqrZuLyH/WOL17Zgp66sb4XB0U2g0OguGvNqpS6Mfe4A2O68nUzJjp8BPCQMJHVmov4RWU5g=='
    }
)
print(resp.status_code)
print(resp.text)
print(resp.cookies)
